
class Movie {

  String? _title;
  String? _subTitle;
  String? _img;
  int? _only;
  double? _ranking;

  String get title => _title??"";

  String get subTitle => _subTitle??"";

  String get img => _img??"";

  bool get only => !(_only == null || _only == 0);

  double get ranking => _ranking??0.0;

  String get onlyHave => !only ? "" : "独播";

  Movie.fromJson(Map<String, dynamic> json) {
    _title = json['title'];
    _subTitle = json['subTitle'];
    _img = json['img'];
    _only = json['only'];
    _ranking = json['ranking'];
  }

}